<?php
    if (isset($_COOKIE['type'])){
		$type=$_COOKIE['type'];
		if ($type == 2) header("Location:index.php");
	}
	else
    header("Location:index.php");
?>